<%@ include file="/WEB-INF/pages/common/taglibs.jsp" %>
<script type="text/javascript">
    function viewDetail(viewId,caseType){
       var currentForm = document.forms["moreSummaryForm"];
        currentForm.elements["viewId"].value = viewId;
        currentForm.elements["caseType"].value = caseType;
        currentForm.elements["fromInd"].value = "moreSummary";
        submitForm("moreSummaryForm", "viewDetail.action");  

    }

    function back(){
        submitForm("moreSummaryForm","clientSummary.action");            
    }
</script>
<s:form name="moreSummaryForm">
    <s:hidden name="viewId"/>
    <s:hidden name="caseType"/>
    <s:hidden name="fromInd"/>
    <table class="sectionBorder" width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td colspan="6">
                <display:table name="helper" form="moreSummaryForm" uid="row" action="moreSummary.action">
                    <display:column titleKey="label.client.summary.title" width="70%">
                        <li/>
                        <a href="javascript:viewDetail('<s:property value="%{#attr.row.viewId}"/>','<s:property value="%{#attr.row.caseType}"/>')">
			<s:if test='#attr.row.caseType=="six"'>
                        	[<s:text name="label.case.select.title6"/>]
                    	</s:if>
                    	<s:if test='#attr.row.caseType=="seven"'>
                        	[<s:text name="label.case.select.title7"/>]
                    	</s:if>
                    	<s:if test='#attr.row.caseType=="eight"'>
                        	[<s:text name="label.case.select.title8"/>]
                    	</s:if>
                    	<s:if test='#attr.row.caseType=="nine"'>
                        	[<s:text name="label.case.select.title9"/>]
                    	</s:if>
                    	<s:if test='#attr.row.caseType=="ten"'>
                    	    	[<s:text name="label.case.select.title10"/>]
                    	</s:if>
                    		<s:property value="%{#attr.row.title}"/>
                        </a>
                    </display:column>
                    <display:column titleKey="label.createDt" width="20%" sortable="true" sortProperty="createDt">
                        <s:property value="%{#attr.row.createDt}"/>
                    </display:column>
                </display:table>
            </td>
        </tr>
    </table>
    <table class="sectionBorder" width="100%">
        <tr>
            <td class="txtData" align="left" width="100%">
                <input type="button" class="button" value="<s:text name='label.back'/>" onclick="back();">
            </td>
        </tr>
    </table>
</s:form>
